@import "mixins/mixins";
@import "common/var";

@include b(avatar) {
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  color: getProp("avatar-font-color");
  background: getProp("avatar-background-color");
  width: getProp("avatar-large-size");
  height: getProp("avatar-large-size");
  line-height: getProp("avatar-large-size");
  font-size: getProp("avatar-text-font-size");

  >img {
    display: block;
    height: 100%;
    vertical-align: middle;
  }

  @include m(circle) {
    border-radius: 50%;
  }

  @include m(square) {
    border-radius: getProp("avatar-border-radius");
  }

  @include m(icon) {
    font-size: getProp("avatar-icon-font-size");
  }

  @include m(large) {
    width: getProp("avatar-large-size");
    height: getProp("avatar-large-size");
    line-height: getProp("avatar-large-size");
  }

  @include m(medium) {
    width: getProp("avatar-medium-size");
    height: getProp("avatar-medium-size");
    line-height: getProp("avatar-medium-size");
  }

  @include m(small) {
    width: getProp("avatar-small-size");
    height: getProp("avatar-small-size");
    line-height: getProp("avatar-small-size");
  }
}
